<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<jsp:useBean id="now" class="java.util.Date" scope="page" />
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link> 
   
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/sysPrint/printCss/print.css" />
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/sysReport/report.js"></script>

	<script type="text/javascript">
	
		window.onload=function name(){
	          window.print();
	          window.close();
	    	}
		$(function(){
			$("#dotted :last ").remove()
		});
	</script>   
<style type="text/css">
		.tr1 td{
			border: solid 1px #000000;
			font-size: 13px;
			height: 25px;
		}
		body {
			font-size: 13px;
		}
	</style>

</head>
<body>
	<table border="0" cellpadding="0" cellspacing="0" width="720px" > 
	<c:forEach items="${status}" var="status"> 
		 <tr>
			<th colspan='13'  style="font-size: 28px;">${status.Company.COM_FLLNAME}销售单</th>
		 </tr>
		 <tr height=10px>
		 </tr>
	     <tr class="tr1">
	        <td colspan="2"style="text-align:center;width:50px;" ><strong>客户名称：</strong></td>
	        <td colspan="5" class="td_left"  >&nbsp;&nbsp;${status.data.CLIENTS_NAME}</td>
	        <td style="text-align:center"><strong>单&nbsp;&nbsp;号：</strong></td>
	        <td colspan="2" class="td_left">&nbsp;&nbsp;${status.data.PX_CODE}</td>
	        <td style="text-align:center"><strong>销售日期：</strong></td>
	        <td colspan="2"  class="td_left">&nbsp;&nbsp;${status.data.INPUT_DATE}</td>
	     </tr>
		 <tr class = "tr1">
			<td colspan=2 style="text-align:center"><strong>片区经理：</strong></td>
			<td class="td_left" >&nbsp;&nbsp;${status.data.O_ID_LASTGR}</td>
			<td style="text-align:center" ><strong>订&nbsp;单&nbsp;号：</strong></td>
			<td colspan=3 class="td_left" >&nbsp;&nbsp;${status.data.c_zd_id }</td>
			<td style="text-align:center"><strong>总码洋：</strong></td>
			<td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_MONEY}</td>
			<td style="text-align:center"><strong>总&nbsp;实&nbsp;洋：</strong></td>
			<td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.REAL_MONEY }</td>
			<!-- 
			<td style="text-align:right"><strong>实洋大写:</strong></td>
			<td class="td_left"  colspan=5 ></td> -->
		 </tr>
		 <tr class = "tr1">
		 	<td colspan=2 style="text-align:center"><strong>收&nbsp;件&nbsp;人：</strong></td>
			<td class="td_left" >&nbsp;&nbsp;${status.data.RECEIVE_MAN }</td>
			<td style="text-align:center"><strong>收件电话：</strong></td>
			<td colspan=3 class="td_left" style="Word-break:break-all"> &nbsp;&nbsp;${status.data.RECEIVE_TEL}</td>
			<td style="text-align:center"><strong>总品种：</strong></td>
			<td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_COUNT }</td>
			<td style="text-align:center"><strong>总&nbsp;数&nbsp;量：</strong></td>
			<td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_AMOUNT }</td>
		</tr>
		<tr class = "tr1">
			<!-- 
			<td colspan=2 style="text-align:right"><strong>收&nbsp;件&nbsp;人:</strong></td>
			<td class="td_left" >&nbsp;&nbsp;${data.RECEIVE_MAN}</td>
			<td style="text-align:right"><strong>收件电话:</strong></td>
			<td colspan=2 class="td_left" width="95" >&nbsp;&nbsp;${data.RECEIVE_TEL }</td> -->
			<td colspan=2 style="text-align:center"><strong>收件地址：</strong></td>
			<td colspan=8 class="td_left" >&nbsp;&nbsp;${status.data.RECEIVE_ADDRESS }</td>
			<td style="text-align:center" ><strong>总&nbsp;包&nbsp;册：</strong></td>
			<td colspan=2  class="td_left" >&nbsp;&nbsp;${status.data.TOTALPACKNUM}</td>
		</tr>
		
      		<tr class = "tr1">
				<td colspan=2 style="text-align:center"><strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</strong></td>
				<td  colspan=11>&nbsp;&nbsp;${status.data.MEMO}</td>
			</tr>

      		<tr>
				<td width="40px"></td> 
				<td width="35px"></td>
				<td width="60px"></td>
				<td width="65px"></td> 
				<td width="60px"></td> 
				<td width="15px"></td>
				<td width="50px"></td> 
				<td width="60px"></td>
				<td width="30px"></td> 
				<td width="30px"></td> 
				<td width="70px"></td>
				<td width="40px"></td>
				<td width="55px"></td>
			</tr>
		 
		 </table>
		 <table border="0" cellpadding="0" cellspacing="0" width="720px" style="font-size: 13px;" > 
		 
		 		<tr>
				<td width="30px"></td> 
				<td width="10px"></td>
				<td width="70px"></td>
				<td width="85px"></td> 
				<td width="65px"></td> 
				<td width="10px"></td>
				<td width="60px"></td> 
				<td width="60px"></td>
				<td width="40px"></td> 
				<td width="50px"></td> 
				<td width="45px"></td>
				<td width="45px"></td>
				<td width="65px"></td>
			</tr>
		 
		 
		 <tr height=10px>
		 </tr>
			<tr>
				<td colspan="12">请仔细核对货物品种、数量、配书，如有货物与单据不符请及时与我公司联系。</td>
			</tr>
			<!--
			border-top:black solid 1px;border-bottom:black solid 1px;
				-->
			<tr>
				<td colspan="13"><hr width="720px"  align="left"  /></td>
			</tr>
				<tr>
					   	<td style="text-align:center"><strong>序号</strong></td>
						<td colspan=2 style="text-align:center" ><strong>书号</strong></td>
						<td colspan=2  style="text-align:center"><strong>商品名称</strong></td>
						<td style="text-align:center"></td>
						<td  style="text-align:center"><strong>出版社</strong></td>
						<td style="text-align:center"> <strong>定价</strong></td>
						<td style="text-align:center"><strong>折扣</strong></td>
						<td style="text-align:center"><strong>数量</strong></td>
						<td style="text-align:center"><strong>码洋</strong></td>
						<td style="text-align:center"><strong>实洋</strong></td>
						<td style="text-align:center"><strong>包册数</strong></td>
				</tr>
				<tr>
				   	<td colspan="13"><hr width="720px" align="left" /></td></tr>
				</tr> 
			    	<c:forEach items="${status.dataList}" var="temp" >
					<tr>
					    <td style="font-size:11px;text-align:center;">${temp.ROWNUM}</td>
						<td colspan=2 style="font-size:11px;">${temp.H_ISBN}</td>
						<td colspan=2 style="font-size:11px;text-align:left;">${temp.H_NAME}</td>
						<td ></td>
						<td style="font-size:11px;text-align:left">${temp.PUB_NAME}</td>
						<td style="font-size:11px;text-align:center">${temp.H_PRICE}</td>
						<td style="font-size:11px;text-align:center">${temp.H_DISCOUNT}</td>
						<td style="font-size:11px;text-align:center">${temp.H_AMOUNT}</td>
						<td style="font-size:11px;text-align:center">${temp.TOTAL_MONEY_ITEM}&nbsp;</td>
						<td style="font-size:11px;text-align:center">${temp.REAL_MONEY_ITEM}</td>
						<td style="font-size:11px;text-align:center">&nbsp;${temp.PACKNUM}</td>
						<!-- <td style="text-align:left">${temp.SHELF_ID}</td>-->
					</tr>
		 <tr height=10px>
		 </tr>
				</c:forEach>
		 <tr height=10px>
		 </tr>
		 </table>
		 <table border="0" cellpadding="0" cellspacing="0" width="730px" > 
		 <tr>
				<td width="5px"></td> 
				<td width="10px"></td>
				<td width="100px"></td>
				<td width="170px"></td> 
				<td width="100px"></td> 
				<td width="15px"></td>
				<td width="15px"></td> 
				<td width="50px"></td>
				<td width="30px"></td> 
				<td width="50px"></td> 
				<td width="15px"></td>
				<td width="50px"></td>
				<td width="40px"></td>
			</tr>
		 
		 <tr >
			<td class="td_right" colspan=2 ><strong>制单人:</strong></td>
			<td class="td_left"  colspan=4>&nbsp;&nbsp;${status.data.INPUT_MAN }</td>
			<td class="td_right" ><strong>审核人:</strong></td>
			<td class="td_left"  colspan=3>&nbsp;&nbsp;${status.data.VERIFY_MAN }</td>
			<td class="td_right" ><strong>出库人:</strong></td>
			<td class="td_left"  colspan=2>&nbsp;&nbsp;${status.data.STOCK_MAN }</td>
		 </tr>
			<tr >
		    	<td colspan="13"><hr width="720px" align="left"  /></td>
		    </tr>	
			<tr >
			<td class="td_right" colspan=2 ><strong>户&nbsp;&nbsp;&nbsp;名:</strong></td>
			<td class="td_left"  colspan=4>&nbsp;&nbsp;${status.Company.COM_FLLNAME}</td>
			<td class="td_right" ><strong>&nbsp;联系人:</strong></td>
			<td class="td_left"  colspan=3>&nbsp;&nbsp;${status.Company.COM_PRINTNAME}</td>
			<td class="td_right" ><strong>邮&nbsp;&nbsp;&nbsp;编:</strong></td>
			<td class="td_left"  colspan=2>&nbsp;&nbsp;${status.Company.COM_ZIP}</td>
			</tr>
			<tr >
			<td class="td_right" style="vertical-align:top;" colspan=2 ><strong>地&nbsp;&nbsp;&nbsp;址:</strong></td>
			<td class="td_left" style="vertical-align:top;"  colspan=4>&nbsp;&nbsp;${status.Company.COM_ADDRESS }</td>
			<td class="td_right" style="vertical-align:top;" ><strong>&nbsp;电&nbsp;&nbsp;&nbsp;话:</strong></td>
			<td class="td_left"  style="vertical-align:top;"  colspan=3>&nbsp;&nbsp;${status.Company.COM_TEL}</td>
			<td class="td_right"  style="vertical-align:top;" ><strong>传&nbsp;&nbsp;&nbsp;真:</strong></td>
			<td class="td_left"  style="vertical-align:top;"  colspan=2>&nbsp;&nbsp;${status.Company.COM_FAX}</td>
			</tr>
			<tr >
			<td class="td_right" colspan=2 ><strong>开户行:</strong></td>
			<td class="td_left"  colspan=4>&nbsp;&nbsp;${status.Company.ACCOUNT_BANK1}</td>
			<td class="td_right" ><strong>&nbsp;账&nbsp;&nbsp;&nbsp;号:</strong></td>
			<td class="td_left"  colspan=3>&nbsp;&nbsp;${status.Company.ACCOUNT_NO1}</td>
			<td class="td_right" ><strong>邮&nbsp;&nbsp;&nbsp;箱:</strong></td>
			<td class="td_left"  colspan=2>&nbsp;&nbsp;</td>
			</tr>
			 <tr >
		    	<td colspan="13"><hr width="720px" align="left" /></td>
		    </tr>
		 <tr height=10px></tr>
			<tr >
			<td class="td_right" colspan=2 ><strong>验&nbsp;&nbsp;&nbsp;书:</strong></td>
			<td class="td_left"  ></td>
			<td class="td_right" ><strong>会&nbsp;&nbsp;&nbsp;计:</strong></td>
			<td class="td_left"  colspan=2  ></td>
			<td class="td_right" ><strong>经手人:</strong></td>
			<td class="td_left"  colspan=2></td>
			<td class="td_right" ><strong>收货人:</strong></td>
			<td class="td_left"  colspan=3></td>
			</tr>
		 <tr height=10px></tr>
			<tr>
				<td colspan="12">请仔细核对货物品种、数量、金额，如有货物与单据明细不符，请及时与我公司人员联系！！！</td>
			</tr>
		 <tr height=10px></tr>
			<tr>
			<td colspan="12" align="right">
<span style="font-size: 11px ;color: #9BA4AF">技术支持:</span>
<span style="font-size: 12px ;color: #9BA4AF">上海爱你特科技  www.ainit.cn</span>			
			</td>
			</tr>
			<c:if test="${status.count!=fn:length(orderArray)}">
			<tr style="page-break-after: always;height:1px;"></tr>
		</c:if>
			</c:forEach>
	</table>
</body>
</html>